package com.ss.test04;

/**
 * @Auther: 520ljs
 * @Date: 2022/3/19 - 03 - 19 - 22:26
 */
public class Test {
    //这是一个main方法，是程序的入口
    public static void main(String[] args) {
        //定义一个线程对象：
        BuyTicketThread t = new BuyTicketThread();
        //窗口1买票：
        Thread t1 = new  Thread(t,"窗口1");
        t1.start();
        //窗口2买票：
        Thread t2 = new Thread(t,"窗口2");
        t2.start();
        //窗口3买票：
        Thread t3 = new Thread(t,"窗口3");
        t3.start();
    }
}
